﻿using System;
using MvcMall.Core.Contacts.Tasks;

namespace MvcMall.AdminWeb.Manage.AdminRoles
{
    public partial class Index : ManageBasePage
    {
        private IAdminRoleTask _adminRoleTask;
        protected void Page_Load(object sender, EventArgs e)
        {
            ValidatePagePower("AdminRoleIndex");
            _adminRoleTask = GetInstance<IAdminRoleTask>();

            if (!IsPostBack)
            {
                rptRoles.DataSource = _adminRoleTask.GetAll();
                rptRoles.DataBind();
            }
        }
    }
}